package com.yonyou.cyxdms.basedata.service.vo.region;

import com.yonyou.cyx.function.utils.jsonserializer.JSONUtil;

import java.util.List;
import java.util.Map;

/**
 * 前端定制城市数据格式
 *
 * @author houkh
 * @since 20191130
 */
public class SpAllCityInfoVO {

    private List<SpAllCityInfoVO.SpBaseCityInfo> provinceList;
    private Map<String, List<SpAllCityInfoVO.SpBaseCityInfo>> cityInfos;

    public List<SpBaseCityInfo> getProvinceList() {
        return provinceList;
    }

    public void setProvinceList(List<SpBaseCityInfo> provinceList) {
        this.provinceList = provinceList;
    }

    public Map<String, List<SpBaseCityInfo>> getCityInfos() {
        return cityInfos;
    }

    public void setCityInfos(Map<String, List<SpBaseCityInfo>> cityInfos) {
        this.cityInfos = cityInfos;
    }

    @Override
    public String toString() {
        return JSONUtil.objectToJson(this);
    }

    public static class SpBaseCityInfo {
        private String code;
        private String address;

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        @Override
        public String toString() {
            return JSONUtil.objectToJson(this);
        }
    }
}
